home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: mike_huwe@mindlink.bc.ca (Mike Huwe)
- Newsgroups: comp.lang.c
- Subject: *** Need help ASAP *** CLS, LOCATE, etc do not work with Borland 3.1 for dos
- Date: 2 Mar 1996 10:08:46 GMT
- Organization: Your Organization
- Message-ID: <4h96ne$3nb@fountain.mindlink.net>
- NNTP-Posting-Host: line080.nwm.mindlink.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- I am using Borland C++ 3.1. When I run simple programs that clear the
- screen or use the LOCATE command, they don't work. for example,
- When I run a program the output stays at the top of the screen. When I run
- the program again the new output is shown below the old output.
-
- If I use the LOCATE macro, the statements are printed below
- each other rather than at the specified cursor location.
-
- Does anyone know what the problem is?
-
- Please e-mail me with your responses. Thanks in advance.
-
- Mike
-
- I used the following:
-
- #define CLS printf("\033[2j")
- #define LOCATE(r,c) printf("\033[%d;%dH",r,c)
-
-